This appears to have been an Xcode bug that has now been fixed as of Xcode 12 beta 6.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: